package com.fangzc.springboot.demo.common.base;

/**
 * @author fangzc
 * @version v1
 * @description 请填写文件相关描述
 * @date 2019-5-29
 */
public interface IService<T> {

    int deleteByPrimaryKey(Integer id);

    int insert(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);

    /**
     * 获取对应 entity 的 BaseMapper
     *
     * @return BaseMapper
     */
    BaseMapper<T> getBaseMapper();
}
